<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ include file="/common/taglibs.jsp"%>
<html>
<head>
	<title>编辑</title>
	<script type="text/javascript" src="${ctx}/scripts/ext2.2.1/adapter/ext/ext-base.js" charset="UTF-8"></script>
	<script type="text/javascript" src="${ctx}/scripts/ext2.2.1/ext-all-debug.js" charset="UTF-8"></script>
	<script type="text/javascript" src="${ctx}scripts/ext2.2.1/source/locale/ext-lang-zh_CN.js" charset="UTF-8"></script>
	<link rel="stylesheet" type="text/css" href="${ctx}/scripts/ext2.2.1/resources/css/ext-all.css">
	<script type="text/javascript">
		function checkForm(form){
			//if(form.parentId.value == "" || form.leaf.value == ""){
			//	Ext.Msg.alert("错误提示","表单信息不健全！");
			//	return false;
			//}
			if(form.title.value == ""){
				Ext.Msg.alert("错误提示","标题不能为空！");
				return false;
			}
			return true;
		}
	</script>
</head>
<body style="background-color: white">
	<br/><br/>
	<form action="${ ctx }/system/dictionarySave.action" method="post" onsubmit="return checkForm(this)">
		<input type="hidden" name="id" value="${entity.id}"/>
		<input type="hidden" name="parentId" value="${entity.parentId}"/>
		<input type="hidden" name="leaf" value="${entity.leaf}"/>
		<table align="center">
			<tr><td width="100">标题：</td>
				<td><input type="text" name="title" value="${entity.title}"/></td></tr>
			<tr><td width="100">关键字：</td>
				<td><input type="text" name="keyword" value="${entity.keyword}"/></td></tr>
			<tr><td>排序：</td>
				<td><input type="text" name="orderNum" value="${entity.orderNum}"/></td></tr>
			<tr><td colspan="2" align="center">
					<br/>
					<input type="submit" name="submit" value="保存"/>
					&nbsp;&nbsp;
					<input type="reset" name="reset" value="重置"/>
					&nbsp;&nbsp;
					<input type="button" name="button" value="取消" onclick="window.parent.FormEditWin.close();">
				</td></tr>
		</table>
	</form>
</body>
</html>
